import type { FormSchema } from '@/components/core/schema-form/';
import { UploadOutlined } from '@ant-design/icons-vue';

export const userSchemas = (): FormSchema<API.UpdateOperActionParams>[] => [
  {
    field: 'ACTION_NO',
    component: 'Input',
    label: '按钮编号',
    rules: [{ required: true, type: 'string' }],
  },
  {
    field: 'ACTION_NAME',
    component: 'Input',
    label: '按钮名称',
    rules: [{ required: true, type: 'string' }],
  },
  {
    field: 'ACTION_START_ENABLE',
    component: 'RadioGroup',
    label: '起草节点是否启用',
    defaultValue: 1,
    componentProps: {
      options: [
        {
          label: '启用',
          value: 1,
        },
        {
          label: '禁用',
          value: 0,
        },
      ],
    },
  },
  {
    field: 'ACTION_RUN_ENABLE',
    component: 'RadioGroup',
    label: '审批节点是否启用',
    defaultValue: 0,
    componentProps: {
      options: [
        {
          label: '是',
          value: 1,
        },
        {
          label: '否',
          value: 0,
        },
      ],
    },
  },
  {
    field: 'ACTION_HIS_ENABLE',
    component: 'RadioGroup',
    label: '历史节点是否启用',
    defaultValue: 0,
    componentProps: {
      options: [
        {
          label: '是',
          value: 1,
        },
        {
          label: '否',
          value: 0,
        },
      ],
    },
  }
];
